home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVQLEAVE.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  31 lines

  1. /*=======================================================*/
  2. /*  TVQLEAVE.C                                           */
  3. /*                                                       */
  4. /*  Last Edit: 5/5/88                                    */
  5. /*                                                       */
  6. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  7. /*  May be freely copied for noncommercial use, so long  */
  8. /*  as this copyright notice remains intact, and any     */
  9. /*  changes are marked in the comment blocks preceding   */
  10. /*  functions.                                           */
  11. /*=======================================================*/
  12.  
  13. #include "tvapi.h"
  14. #include "tvstream.h"
  15.  
  16. /*=======================================================*/
  17. /* TVqry_leave   return TRUE if writing leave attributes */
  18. /*               unaffected                              */
  19. /*   Ralf Brown 4/8/88                                   */
  20. /*=======================================================*/
  21.  
  22. int pascal TVqry_leave(OBJECT win)
  23. {
  24.    static BYTE leave_query[]  = { S_QUERY(1), QS_LEAVEATTR } ;
  25.  
  26.    TVwin_stream(win,leave_query) ;
  27.    return (leave_query[4] == QS_LEAVEATTR) ;
  28. }
  29.  
  30. /* End of TVQLEAVE.C */
  31.